package com.gullmall.ware.dao;

import com.gullmall.ware.entity.WareSkuEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gullmall.common.to.SkuHasStockTo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商品库存
 * 
 * @author lidai
 * @email 332617778@qq.com
 * @date 2022-05-19 17:00:30
 */
@Mapper
public interface WareSkuDao extends BaseMapper<WareSkuEntity> {

    List<SkuHasStockTo> getSkuHasStock(@Param("skuIds") List<Long> skuIds);
}
